package org.ruoyi.gathe.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.ruoyi.common.excel.annotation.ExcelDictFormat;
import org.ruoyi.common.excel.convert.ExcelDictConvert;
import org.ruoyi.gathe.domain.GatheTableColumn;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;



/**
 * 采集字段视图对象 gathe_table_column
 *
 * @author bz_huaYal9146
 * @date 2025-11-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = GatheTableColumn.class)
public class GatheTableColumnVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 采集主表ID
     */
    @ExcelProperty(value = "采集主表ID")
    private Long gatheTableId;

    /**
     * 本地字段名
     */
    @ExcelProperty(value = "本地字段名")
    private String gatheColumn;

    /**
     * 字段中文名
     */
    @ExcelProperty(value = "字段中文名")
    private String gatheColumnName;

    /**
     * 远端字段名
     */
    @ExcelProperty(value = "远端字段名")
    private String gatheColumnFar;

    /**
     * 是否主键（1是；0否）
     */
    @ExcelProperty(value = "是否主键", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=是；0否")
    private String isPk;


}
